package com.xbongbong.pro.workorder.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author 刘阳
 * @date 2019/4/15 9:50 AM
 * @since v1.0
 * @version v1.0
 */
@Getter
@Setter
@ToString
public class WorkOrderEvaluateSaveDTO extends BaseDTO {

    private static final long serialVersionUID = 6863220364832660452L;
    /**
     * 工单编号
     */
    @NotNull(message = "{dto.msg.workOrderEvaluateSave.workOrderId.NotNull}")
    private Long workOrderId;

    /**
     * 评价星级
     */
    @NotNull(message = "{dto.msg.workOrderEvaluateSave.rateStar.NotNull}")
    private Integer rateStar;

    /**
     * 评价内容
     */
    @NotNull(message = "{dto.msg.workOrderEvaluateSave.rateContent.NotNull}")
    @Size(max = 500 ,message = "{dto.msg.workOrderEvaluateSave.rateContent.Size}")
    private String rateContent;

}
